﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;
using WalkingTec.Mvvm.Core;

namespace WTM.Model
{




    public class Works : BasePoco
    {

        //[Display( Name = "学校编码")]
        //[Required( ErrorMessage = "{0}是必填项")]
        //[RegularExpression( "^[0-9]{3,3}$", ErrorMessage = "{0}必须是3位数字")]
        //[StringLength(3)]
        //public string SchoolCode { get; set; }

        //[Display( Name = "学校名称")]
        //[StringLength( 50, ErrorMessage = "{0}最多输入{1}个字符")]
        //[Required(ErrorMessage = "{0}是必填项")]
        //public string SchoolName { get; set; }

        //[Display( Name = "学校类型")]
        //[Required( ErrorMessage = "{0}是必填项")]
        //public SchoolTypeEnum? SchoolType { get; set; }
        [Display(Name = "工作名称")]
        public string work { get; set; }

        [Display(Name = "单位区域")]
        public DwQy Dwqy { get; set; }

        [Display(Name = "单位名称")]
        [Required(ErrorMessage = "{0}是必填项")]
        public string Dwmc { get; set; }

        [Display(Name = "单位编码/统一机构代码")]
        public string Dwbm { get; set; }

        [Display(Name = "单位类型")]
        public DwTypeEnum Dwlx { get; set; }

        [Display(Name = "单位地址")]
        public string Dwdz { get; set; }

        [Display(Name = "电话")]
        public string Lxdh { get; set; }

        [Display(Name = "联系人")]
        public string Lxr { get; set; }

        [Display(Name = "照片")]
        public Guid? PhotoId { get; set; }
        public FileAttachment Photo { get; set; }//关联文件

        [Display(Name = "工作内容")]
        public string WorkNr { get; set; }

        [Display(Name = "年龄要求(最低)")]
        [Range(17, 99, ErrorMessage = "{0}年龄数值必须在18到99之间")]
        public int NlYq_1 { get; set; }

        [Display(Name = "年龄要求(最大)")]
        [Range(18, 99, ErrorMessage = "{0}年龄数值必须在18到99之间")]
        public int NlYq_2 { get; set; }

        [Display(Name = "性别要求")]
        public XbEnum XbYq { get; set; }

        [Display(Name = "要求(必须)")]
        public string WorkYq_1 { get; set; }

        [Display(Name = "要求(优先)")]
        public string WorkYq_2 { get; set; }

        [Display(Name = "薪资待遇")]
        public string Xzdy { get; set; }


        //[Display(Name = "3D模型")]
        //public Guid? Mx3DId { get; set; }
        //public FileAttachment Mx3D { get; set; }//关联文件

        //public List<Ry> Rys = new List<Ry>();

        [Display(Name = "备注")]
        public string Remark { get; set; }
    }
}